class Api::V1::ExpressTracksController < Api::V1::BaseController
  def index
    @order = Order.find params[:order_id]
    if @order.user_id != @current_user.id
      render json: { result: false, message: '无权查看该订单信息.' }, status: :ok and return
    end
    @express_tracks = @order.express_tracks.order("created_at DESC").page(params[:page]).per(params[:per])
  end
end
